#pragma once
#include "DSpace.h"

namespace Skill
{
	namespace Ode
	{		
		public ref class DHashSpace : DSpace
		{			
		public:
			DHashSpace(DSpace^ space)
				:DSpace()
			{
				if(space)
					_SetPointer(dHashSpaceCreate(space->_Space()),true);
				else
					_SetPointer(dHashSpaceCreate(NULL),true);
				_Container = space;
			}

			VALUE_PROP_DECLARATION_GETSET(int,Minlevel);
			VALUE_PROP_DECLARATION_GETSET(int,Maxlevel);

			void SetLevels(int minlevel , int maxlevel);

		};		
	}
}